package com.mvc.mapper;

import com.mvc.entity.UserAddress;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName UserAddressMapper
 * @Description TODO
 * @Author king
 * @Date 2021/11/27 16:25
 * @Version 1.0
 **/

public interface UserAddressMapper {

    /**
     * @MethodName listSearch
     * @Description TODO
     * @Param startRow
     * @Param limit
     * @Return java.util.List<com.mvc.entity.UserAddress>
     * @Author king
     * @Date 2021/11/27 17:05
     **/
    List<UserAddress> listSearch(@Param(value = "startRow") Integer startRow, @Param(value = "limit") Integer limit);

    /**
     * @MethodName getCount
     * @Description TODO
     * @Param uname
     * @Param uid
     * @Return java.lang.Integer
     * @Author king
     * @Date 2021/11/27 17:06
     **/
    Integer getCount();


    /**
     * @MethodName insert
     * @Description TODO
     * @Param User
     * @Return java.lang.Integer
     * @Author king
     * @Date 2021/11/27 17:07
     **/
    Integer insert(UserAddress UserAddress);

    /**
     * @MethodName update
     * @Description TODO
     * @Param User
     * @Return java.lang.Integer
     * @Author king
     * @Date 2021/11/27 17:07
     **/
    Integer update(UserAddress UserAddress);

    /**
     * @MethodName del
     * @Description TODO
     * @Param id
     * @Return java.lang.Integer
     * @Author king
     * @Date 2021/11/27 17:07
     **/
    Integer del(@Param(value = "id") Integer id);
}
